package model;

import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 *
 * @author Merli András-Bertalan
 */
public class QueryComponent {
    private final SimpleObjectProperty<TableAndAttribute> tableAndAttribute;
    private final SimpleStringProperty filter;

    public QueryComponent() {
        tableAndAttribute = new SimpleObjectProperty<>();
        filter = new SimpleStringProperty();
    }

    public TableAndAttribute getTableAndAttribute() {
        return tableAndAttribute.get();
    }

    public void setTableAndAttribute(TableAndAttribute tableAndAttribute) {
        this.tableAndAttribute.set(tableAndAttribute);
    }

    public String getFilter() {
        return filter.get();
    }

    public void setFilter(String filter) {
        this.filter.set(filter);
    }
}
